package cn.hhz.charging.device.dao.repository.impl;

import cn.hhz.charging.device.dao.mapper.StationMapper;
import cn.hhz.charging.device.dao.repository.StationRepository;
import cn.hhz.charging.device.pojo.po.StationPO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class StationRepositoryImpl implements StationRepository {

    @Autowired
    private StationMapper stationMapper;

    @Override
    public List<StationPO> getAllStation() {
        //通过mybatis-plus 查询， queryWrapper 用来指定查询条件
        //查询所有，没有查询条件，可以传null
        return stationMapper.selectList(null);
    }
}
